package com.hmall.mapper;

import com.hmall.model.MallCategory;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface MallCategoryMapper extends MyMapper<MallCategory> {
    List<MallCategory> selectCategoryChildrenByParentId(Integer parentId);

    List<MallCategory> listCategoryItemByParentId(@Param(value = "parentId") int parentId);
}